package com.cxf.windex.enums;

public enum BillEnum {
  INCOME("0", "收入"),
  EXPENSES("1", "支出");

  private final String key;
  private final String desc;

  private BillEnum(String key, String desc) {
    this.key = key;
    this.desc = desc;
  }

  public static BillEnum getIdType(String idType) {
    BillEnum[] its = values();
    BillEnum[] arr$ = its;
    int len$ = its.length;

    for(int i$ = 0; i$ < len$; ++i$) {
      BillEnum it = arr$[i$];
      if (it.getKey() .equals( idType)) {
        return it;
      }
    }

    return INCOME;
  }

  public String getKey() {
    return this.key;
  }

  public String getDesc() {
    return this.desc;
  }
}
